﻿<Serializable()> _
Public Class Eprofesion

#Region "           Atributos                       "
    Private _idProfesion As Int32
    Private _desProfesion As String
    Private _estado As String
    Private _descEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idProfesion() As Int32
        Get
            Return _idProfesion
        End Get
        Set(ByVal value As Int32)
            _idProfesion = value
        End Set
    End Property
    Public Property desProfesion() As String
        Get
            Return _desProfesion
        End Get
        Set(ByVal value As String)
            _desProfesion = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property descEstado() As String
        Get
            Return _descEstado
        End Get
        Set(ByVal value As String)
            _descEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "

#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idProfesion As String, ByVal desProfesion As String)
        Me.idProfesion = idProfesion
        Me.desProfesion = desProfesion
    End Sub
    Public Sub New(ByVal idProfesion As Int32, ByVal desProfesion As String, ByVal estado As String)
        Me.idProfesion = idProfesion
        Me.desProfesion = desProfesion
        Me.estado = estado
        Me.descEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
    End Sub
#End Region

End Class
